<table width="100%">
	<tr>
		<th>#</th>
		<th>Time</th>
		<th>By User</th>
		<th>Log Type</th>
		<th>Message</th>
	</tr>
	{foreach $logs as $log_id=>$log}
		<tr>
			<td>{$log_id}</td>
			<td>{$log.time_created}</td>
			{if $log.user_id==$log.from_user_id}
				<td>---</td>
			{else}
				<td title="{$log.from_loginname}">{$log.from_name}</td>
			{/if}
			<td><strong>{$log.log_type}</strong></td>
			<td><pre>{$log.message}</pre></td>
		</tr>
	{/foreach}
</table>